home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d1 / dosref19.arc / CHAPTER.009 < prev    next >
Text File  |  1991-06-07  |  21KB  |  367 lines

  1.  
  2.    **  Programmer's  Technical  Reference  for  MSDOS  and  the  IBM  PC **
  3.                         ┌─────────────────────────────┐
  4.                         │ Shareware Version, 04/16/91 │
  5.                         │  Please Register Your Copy  │
  6.                         └─────────────────────────────┘
  7.                     Copyright (c) 1987, 1991 Dave Williams
  8.                           USA copyright TXG 392-616
  9.                      ISBN 1-878830-02-3 (disk-based text)
  10.  
  11.  
  12.  The rest of the chapters aren't included in this shareware demonstration
  13. package.  Since the complete manual takes almost a megabyte archived, 
  14. something had to give somewhere.
  15.  
  16.  Here's a sample of what you're missing:
  17.  
  18.  (Chapters 1 and 2 are complete)
  19.  
  20.  
  21. CHAPTER 3       The IBM ROM BIOS
  22.  
  23. Calling the ROM BIOS .................................................. 3**1
  24. Interrupt 10h  Video Services ......................................... 3**2
  25. Interrupt 11h  Equipment Check ........................................ 3**3
  26. Interrupt 12h  Memory Size ............................................ 3**4
  27. Interrupt 13h  Disk Functions ......................................... 3**5
  28. Interrupt 14h  Initialize and Access Serial Port ...................... 3**6
  29.                FOSSIL Drivers ......................................... 3**7
  30. Interrupt 15h  Cassette I/O ........................................... 3**8
  31. Interrupt 16h  Keyboard I/O ........................................... 3**9
  32. Interrupt 17h  Printer ................................................ 3**10
  33. Interrupt 18h  ROM BASIC .............................................. 3**11
  34. Interrupt 19h  Bootstrap Loader ....................................... 3**12
  35. Interrupt 1Ah  Time of Day ............................................ 3**13
  36. Interrupt 1Bh  Control-Break .......................................... 3**14
  37. Interrupt 1Ch  Timer Tick ............................................. 3**15
  38. Interrupt 1Dh  Vector of Video Initialization Parameters .............. 3**16
  39. Interrupt 1Eh  Vector of Diskette Controller Parameters ............... 3**17
  40. Interrupt 1Fh  Ptr to Graphics Character Extensions (Graphics Set 2) .. 3**18
  41.  
  42.  
  43. CHAPTER 4       DOS Function Requests
  44.  
  45. General Programming Guides ............................................ 4**1
  46. DOS Registers ......................................................... 4**2
  47. DOS Stacks ............................................................ 4**3
  48. DOS Interrupts ........................................................ 4**4
  49. Interrupt 20h (Terminate) ............................................. 4**5
  50. DOS Services (quick list) ............................................. 4**6
  51. Calling the DOS Services .............................................. 4**7
  52. Version Specific Information .......................................... 4**8
  53. Compatibility Problems With DOS 4.0+ .................................. 4**9
  54. PCjr Cartridge Support ................................................ 4**10
  55. eDOS 4.0 .............................................................. 4**11
  56. DOS Services in Detail ................................................ 4**12
  57.  
  58.  
  59. CHAPTER 5       Interrupts 22h through 0FFh
  60.  
  61. Interrupt 22h   Terminate Address ..................................... 5**1
  62. Interrupt 23h   Ctrl-Break Exit Address ............................... 5**2
  63. Interrupt 24h   Critical Error Handler ................................ 5**3
  64. Interrupt 25h   Absolute Disk Read .................................... 5**4
  65. Interrupt 26h   Absolute Disk Write ................................... 5**5
  66. Interrupt 27h   Terminate And Stay Resident ........................... 5**6
  67. Interrupt 28h   (not documented by Microsoft) ......................... 5**7
  68. Interrupt 29h   (not documented by Microsoft) ......................... 5**8
  69. Interrupt 2Ah   Microsoft Networks - Session Layer Interrupt .......... 5**9
  70. Interrupt 2Bh   Unknown ............................................... 5**10
  71. Interrupt 2Ch   Unknown ............................................... 5**11
  72. Interrupt 2Dh   Unknown ............................................... 5**12
  73. Interrupt 2Eh   Alternate EXEC (DOS 2.0+) ............................. 5**13
  74. Interrupt 2Fh   Multiplex Interrupt ................................... 5**14
  75. Interrupt 30h   FAR jump instruction for CP/M-style calls ............. 5**15
  76. Interrupt 31h   Unknown ............................................... 5**16
  77. Interrupt 32h   Unknown ............................................... 5**17
  78. Interrupt 33h   Used by Microsoft Mouse Driver Function Calls ......... 5**18
  79. Interrupt 34h   Turbo C/Microsoft languages - Floating Point emulation  5**19
  80. Interrupt 35h   Turbo C/Microsoft languages - Floating Point emulation  5**20
  81. Interrupt 36h   Turbo C/Microsoft languages - Floating Point emulation  5**21
  82. Interrupt 37h   Turbo C/Microsoft languages - Floating Point emulation  5**22
  83. Interrupt 38h   Turbo C/Microsoft languages - Floating Point emulation  5**23
  84. Interrupt 39h   Turbo C/Microsoft languages - Floating Point emulation  5**24
  85. Interrupt 3Ah   Turbo C/Microsoft languages - Floating Point emulation  5**25
  86. Interrupt 3Bh   Turbo C/Microsoft languages - Floating Point emulation  5**26
  87. Interrupt 3Ch   Turbo C/Microsoft languages - Floating Point emulation  5**27
  88. Interrupt 3Dh   Turbo C/Microsoft languages - Floating Point emulation  5**28
  89. Interrupt 3Eh   Turbo C/Microsoft languages - Floating Point emulation  5**29
  90. Interrupt 3Fh   Overlay Manager Interrupt (Microsoft LINK.EXE) ........ 5**30
  91. Interrupt 40h   Hard Disk BIOS ........................................ 5**31
  92. Interrupt 41h   Hard Disk Parameters .................................. 5**32
  93. Interrupt 42h   Pointer to screen BIOS entry .......................... 5**33
  94. Interrupt 43h   Pointer to EGA Graphics Character Table ............... 5**34
  95. Interrupt 44h   Pointer to graphics character table ................... 5**35
  96. Interrupt 45h   Reserved by IBM  (not initialized) .................... 5**36
  97. Interrupt 46h   Pointer to second hard disk parameter block ........... 5**37
  98. Interrupt 47h   Reserved by IBM  (not initialized) .................... 5**38
  99. Interrupt 48h   Cordless Keyboard Translation ......................... 5**39 
  100. Interrupt 49h   Non-keyboard Scan Code Translation Table Address (PCjr) 5**40
  101. Interrupt 4Ah   Real-Time Clock Alarm (Convertible, PS/2) ............. 5**41
  102. Interrupt 4Bh   Reserved by IBM  (not initialized) .................... 5**42
  103. Interrupt 4Ch   Reserved by IBM  (not initialized) .................... 5**43
  104. Interrupt 4Dh   Reserved by IBM  (not initialized) .................... 5**44
  105. Interrupt 4Eh   Reserved by IBM  (not initialized) .................... 5**45
  106. Interrupt 4Fh   Reserved by IBM  (not initialized) .................... 5**46
  107. Interrupt 50-57 IRQ0-IRQ7 Relocation .................................. 5**47
  108. Interrupt 58h   Reserved by IBM  (not initialized) .................... 5**48
  109. Interrupt 59h   Reserved by IBM  (not initialized) .................... 5**49
  110. Interrupt 5Ah   Reserved by IBM  (not initialized)  ................... 5**50
  111. Interrupt 5Bh   Reserved by IBM  (not initialized) .................... 5**51
  112. Interrupt 5Ah   Cluster Adapter BIOS entry address .................... 5**52
  113. Interrupt 5Bh   Reserved by IBM  (not initialized) .................... 5**53
  114. Interrupt 5Ch   NETBIOS interface entry port, TOPS .................... 5**54
  115. Interrupt 5Dh   Reserved by IBM  (not initialized) .................... 5**55
  116. Interrupt 5Eh   Reserved by IBM  (not initialized) .................... 5**56
  117. Interrupt 5Fh   Reserved by IBM  (not initialized) .................... 5**57
  118. Interrupt 60h-67h  User Program Interrupts ............................ 5**58
  119. Interrupt 60h   Network OS Interface .................................. 5**59
  120. Interrupt 67h   Expanded Memory Board Driver Interrupt ................ 5**60
  121. Interrupt 68h   Not Used  (not initialized) ........................... 5**61
  122. Interrupt 69h   Not Used  (not initialized) ........................... 5**62
  123. Interrupt 6Ah   Not Used  (not initialized) ........................... 5**63
  124. Interrupt 6Bh   Not Used  (not initialized) ........................... 5**64
  125. Interrupt 6Ch   System Resume Vector (Convertible) .................... 5**65
  126. Interrupt 6Dh   Not Used  (not initialized) ........................... 5**66
  127. Interrupt 6Eh   Not Used  (not initialized) ........................... 5**67
  128. Interrupt 6Fh   10-Net API............................................. 5**68
  129. Interrupt 70h   IRQ 8, Real Time Clock Interrupt (AT, XT/286, PS/2) ... 5**69
  130. Interrupt 71h   IRQ 9, Redirected to IRQ 8 (AT, XT/286, PS/2) ......... 5**70
  131. Interrupt 72h   IRQ 10  (AT, XT/286, PS/2)  Reserved .................. 5**71
  132. Interrupt 73h   IRQ 11  (AT, XT/286, PS/2)  Reserved .................. 5**72
  133. Interrupt 74h   IRQ 12  Mouse Interrupt (PS/2) ........................ 5**73
  134. Interrupt 75h   IRQ 13, Coprocessor Error (AT) ........................ 5**74
  135. Interrupt 76h   IRQ 14, Hard Disk Controller (AT, XT/286, PS/2) ....... 5**75
  136. Interrupt 77h   IRQ 15 (AT, XT/286, PS/2)  Reserved ................... 5**76
  137. Interrupt 78h   Not Used .............................................. 5**77
  138. Interrupt 79h   Not Used .............................................. 5**78
  139. Interrupt 7Ah   Reserved .............................................. 5**79
  140. Interrupt 7Bh-7Eh  Not Used by IBM .................................... 5**80
  141. Interrupt 7Ch   REXX-PC API ........................................... 5**81
  142. Interrupt 7Fh   IBM 8514/A Graphics Adapter API ....................... 5**82
  143. Interrupt 80h-85h  Reserved by BASIC .................................. 5**83
  144. Interrupt 86h   Int 18 when relocated by NETBIOS ...................... 5**84
  145. Interrupt 86h-0F0h  Used by BASIC when BASIC interpreter is running ... 5**85
  146. Interrupt 0A4h  Right Hand Man API .................................... 5**86
  147. Interrupt 0D4h  PC-MOS/386 API ........................................ 5**87
  148. Interrupt 0E0h  Digital Research CP/M-86 function calls ............... 5**88
  149. Interrupt 0E1h  PC Cluster Disk Server Information .................... 5**89
  150. Interrupt 0E2h  PC Cluster Program .................................... 5**90
  151. Interrupt 0E4h  Logitech Modula-2 v2.0   Monitor Entry ................ 5**91
  152. Interrupt 0E5h  Not Used .............................................. 5**92
  153. Interrupt 0E6h  Not Used .............................................. 5**93
  154. Interrupt 0E7h  Not Used .............................................. 5**94
  155. Interrupt 0E8h  Not Used .............................................. 5**95
  156. Interrupt 0E9h  Not Used .............................................. 5**96
  157. Interrupt 0EAh  Not Used .............................................. 5**97
  158. Interrupt 0EBh  Not Used .............................................. 5**98
  159. Interrupt 0ECh  Not Used .............................................. 5**99
  160. Interrupt 0EDh  Not Used ............................................. 5**100
  161. Interrupt 0EEh  Not Used ............................................. 5**101
  162. Interrupt 0EFh  GEM interface (Digital Research) ..................... 5**102
  163. Interrupt 0F0h  unknown .............................................. 5**103
  164. Interrupts 0F1h-0FFh  (absolute addresses 3C4h-3FFh) ................. 5**104
  165. Interrupt 0F4h  Not Used ............ ................................ 5**105
  166. Interrupt 0F5h  Not Used ............ ................................ 5**106
  167. Interrupt 0F8h  Set Shell Interrupt (OEM) ............................ 5**107
  168. Interrupt 0F9h  Reserved ............................................. 5**108
  169. Interrupt 0FAh  USART ready (RS-232C) ................................ 5**109
  170. Interrupt 0FBh  USART RS ready (keyboard) ............................ 5**110
  171. Interrupt 0FCh  Unknown ...............................................5**111
  172. Interrupt 0FDh  reserved for user interrupt .......................... 5**112
  173. Interrupt 0FEh  reserved by IBM ...................................... 5**113
  174. Interrupt 0FFh  reserved by IBM ...................................... 5**114
  175.  
  176.  
  177.  
  178. CHAPTER 6       DOS Control Blocks and Work Areas
  179.  
  180. DOS Address Space ..................................................... 6**1
  181. Storage Blocks ........................................................ 6**2
  182. Disk Transfer Area (DTA) .............................................. 6**3
  183. Program Segment Prefix ................................................ 6**4
  184. Memory Control Blocks ................................................. 6**5
  185. DOS Program Segment ................................................... 6**6
  186.  
  187.  
  188. CHAPTER 7       DOS File Information
  189.  
  190. File Management Functions ............................................. 7**1
  191. FCB Function Calls .................................................... 7**2
  192. Handle Function Calls ................................................. 7**3
  193. Special File Handles .................................................. 7**4
  194. Raw and Cooked File I/O ............................................... 7**5
  195. Number of Open Files Allowed  ......................................... 7**6
  196. Restrictions on FCB Usage ............................................. 7**7
  197. Restrictions on Handle usage .......................................... 7**8
  198. Allocating Space to a File ............................................ 7**9
  199. MSDOS / PCDOS Differences ............................................. 7**10
  200. .COM File Structure ................................................... 7**11
  201. .EXE File Structure ................................................... 7**12
  202. The Relocation Table .................................................. 7**13
  203. "NEW" .EXE Format (Microsoft Windows and OS/2) ........................ 7**14
  204. Standard File Control Block ........................................... 7**15
  205. Extended File Control Block ........................................... 7**16
  206. Disk Transfer Area .................................................... 7**17
  207.  
  208.  
  209. CHAPTER 8       DOS Disk Information
  210.  
  211. The DOS Area .......................................................... 8**1
  212. The Boot Record ....................................................... 8**2
  213. DOS File Allocation Table (FAT) ....................................... 8**3
  214.         Media Descriptor Byte ......................................... 8**4
  215.         12 Bit FATs ................................................... 8**5
  216.         16 Bit FATs ................................................... 8**6
  217.         32 Bit FATs ................................................... 8**7
  218. DOS Disk Directory .................................................... 8**8
  219. The Data Area ......................................................... 8**9
  220. Floppy Disk Types ..................................................... 8**10
  221. Hard Disk Layout ...................................................... 8**11
  222. System Initialization ................................................. 8**12
  223. Boot Record/Partition Table ........................................... 8**13
  224. Hard Disk Technical Information ....................................... 8**14
  225. Determining Hard Disk File Allocation ................................. 8**15
  226. BIOS Disk Functions ................................................... 8**16
  227.  
  228.  
  229. CHAPTER 9       Device Drivers
  230.  
  231.  
  232. CHAPTER 10      Lotus/Intel/Microsoft Expanded Memory Specification
  233.  
  234. History ............................................................... 10**1
  235. Uses of Expanded Memory ............................................... 10**2
  236. DOS and Expanded Memory ............................................... 10**3
  237. Different Memory Types ................................................ 10**4
  238. AST/Quadram/Ashton-Tate Enhanced EMM .................................. 10**5
  239. EMS Address Space Map ................................................. 10**6
  240. Writing Programs That Use Expanded Memory ............................. 10**7
  241. Page Frames ........................................................... 10**8
  242. Calling the Manager ................................................... 10**9
  243. Detecting EMS ......................................................... 10**10
  244. Terminate and Stay Resident (TSR) Program Cooperation ................. 10**11
  245. Expanded Memory Services Quick List ................................... 10**12
  246. Expanded Memory Services .............................................. 10**13
  247.         LIM 3.2 Specification ......................................... 10**14
  248.         LIM 4.0 Specification ......................................... 10**15
  249.         AQA EEMS 3.2 Specification .................................... 10**16
  250.         VCPI API 1.0 .................................................. 10**17
  251. Expanded Memory Manager Error Codes ................................... 10**18
  252.  
  253.  
  254. CHAPTER 11      Conversion Between Operating Systems
  255.  
  256. Overview .............................................................. 11**1
  257. Special Considerations ................................................ 11**2
  258. Example Operating Systems ............................................. 11**3
  259. Atari ST .............................................................. 11**4
  260. CP/M .................................................................. 11**5
  261. MacOS ................................................................. 11**6
  262. AmigaDOS .............................................................. 11**7
  263. OS/2 .................................................................. 11**8
  264. UNIX .................................................................. 11**9
  265.  
  266.  
  267. CHAPTER 12      Microsoft Windows API
  268.  
  269. Overview .............................................................. 12**1
  270. Programming Windows ................................................... 12**2
  271. Versions .............................................................. 12**3
  272. Functions ............................................................. 12**4
  273. Error Codes ........................................................... 12**5
  274.  
  275.  
  276. CHAPTER 13      Network APIs
  277.  
  278. FTP Driver - PC/TCP Packet Driver Specification ....................... 13**1
  279. 10-Net Network ........................................................ 13**2
  280. LANtastic LANOS API ................................................... 13**3
  281. Novell NetWare 2.11 API ............................................... 13**4
  282. APPC/PC ............................................................... 13**5
  283.  
  284.  
  285. CHAPTER 14      Mouse Programming
  286.  
  287. General Information ................................................... 14**1
  288. Register Usage ........................................................ 14**2
  289. Interrupt 33h Function Requests ....................................... 14**3
  290. Interrupt 10h Function Requests ....................................... 14**4
  291.  
  292.  
  293. CHAPTER 15      Register-Level Programming
  294.  
  295. 8555 Peripheral Interface ............................................. 15**1
  296. 8259 Interrupt Controller ............................................. 15**2
  297. AT CMOS RAM Configuration ............................................. 15**3
  298.  
  299.  
  300. CHAPTER 16      Video Programming
  301.  
  302. Quick List of BIOS Interrupt 10h Functions ............................ 16**1
  303. BIOS Interrupt 10h Functions in Detail ................................ 16**2
  304.  
  305.  
  306. CHAPTER 17      Multitasking Shells
  307.  
  308. Introduction .......................................................... 17**1
  309. Programming Practices ................................................. 17**2
  310. TopView/DesQview API (interrupt 15h, "System Services" interface) ..... 17**3
  311. TopView/DesQview API (interrupt 16h, "BIOS Video" interface) .......... 17**4
  312.  
  313.  
  314. CHAPTER 18      Viruses and Trojan Horses
  315.  
  316.  
  317. MISCSTUF        Miscellaneous Stuff
  318.  
  319. AFTERWRD        Afterword
  320.  
  321.  
  322.  
  323.  
  324.  A P P E N D I C E S
  325.  
  326. APPENDIX  1     Keyboard scan code chart
  327.  
  328. APPENDIX  2     ASCII character chart
  329.  
  330. APPENDIX  3     IBM PC character set
  331.  
  332. APPENDIX  4     IBM PC error code listing
  333.  
  334. APPENDIX  5     Addresses of various manufacturers
  335.  
  336. APPENDIX  6     Hard disk information
  337.  
  338. APPENDIX  7     Floppy and Tape Devices
  339.  
  340. APPENDIX  8     Pinouts of various connectors on the IBM PC
  341.  
  342. APPENDIX  9     Sizes of various drivers installed in CONFIG.SYS
  343.  
  344. APPENDIX  10    Common modem instruction sets
  345.  
  346. APPENDIX  11    Glossary of computer terminology
  347.  
  348. APPENDIX  12    Various busses used in MSDOS machines
  349.  
  350. APPENDIX  13    Common filename extensions
  351.  
  352. APPENDIX  14    Clock speeds of various expansion cards
  353.  
  354. APPENDIX  15    Header formats used by various archive utilities
  355.  
  356. APPENDIX  16    Miscellaneous Hardware Information
  357.  
  358. APPENDIX  17    HP LaserJet Setup Codes
  359.  
  360. APPENDIX  18    ANSI.SYS
  361.  
  362. APPENDIX  19    DEC VT100 Escape Sequences
  363.  
  364. APPENDIX  20    Various Paint Program Formats
  365.  
  366.  
  367.